package com.skivingcloud.report.datas.service;

import com.skivingcloud.report.datas.entity.ReportDatasetParam;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author skivingcloud
 * @since 2022-07-20
 */
public interface IReportDatasetParamService extends IService<ReportDatasetParam> {
	/**
	 * 参数替换
	 * @param contextData
	 * @param dynSentence
	 * @return
	 */
	String transform(Map<String, Object> contextData, String dynSentence);

	String transform(List<ReportDatasetParam> dataSetParamList, String dynSentence);

	/**
	 * 参数校验  js脚本
	 * @param param
	 * @throws Exception
	 */
	Object verification(ReportDatasetParam param) throws Exception;
}
